package com.bjmashibing.system;

import com.bjmashibing.system.huawei.vivo.Messaging;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class test_samsung {
    private final static Logger logger = LoggerFactory.getLogger(test_huawei.class);

    @Test
    public void test() {

        System.setProperty("jdk.http.auth.tunneling.disabledSchemes", "");
        //HTTP代理
        System.setProperty("http.proxyHost","127.0.0.1");
        System.setProperty("http.proxyPort",Integer.toString(1080));
        //HTTPS代理
        System.setProperty("https.proxyHost","127.0.0.1");
        System.setProperty("https.proxyPort",Integer.toString(1080));
        try {
            Messaging.send_message_fcm_to_regid("eh-PBbr1R8eH5nEKkVq-BQ:APA91bGjZbTdqJmSZa3BZYMPBGJ6U2RKgfoCecUhjahm6XKptnBfa6i49cnVycXZ0f6RkjGuICVGRt-gUa1RmWn9QIlNuEMZMt3DzIRvqFB2Y-VJaMz3NgMg-nGDmDuo_ctluQxAp9Ul","全局佈防",
                    "[" + "8612345678" + ":" + "|3400 00 000]","8612345678","|3400 00 000]");
        } catch (Exception e) {
            logger.info("samsung push error=" + e.getMessage());
            e.printStackTrace();
        }
    }
}
